<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Ui/debuggerwidget.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_80876d1476b72d92a9650b7ee3516e4c.html">TeamCurriculumDesign</a></li><li class="navelem"><a class="el" href="dir_8774018fec5cc24188ddfa90aaf9f999.html">Ui</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">debuggerwidget.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#ifndef DEBUGGERWIDGET_H</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#define DEBUGGERWIDGET_H</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;QOpenGLWidget&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &lt;QOpenGLFunctions&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#define NAME(v) (#v)</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#define PRINT(v) std::cout &lt;&lt; NAME(v) &lt;&lt; &quot; : &quot;</span> &lt;&lt; (v) &lt;&lt; std::endl</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="keyword">namespace </span>Ui {</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    <span class="keyword">class </span><a class="code hl_class" href="class_debugger_widget.html">DebuggerWidget</a>;</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>}</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="class_debugger_widget.html">   17</a></span><span class="keyword">class </span><a class="code hl_class" href="class_debugger_widget.html">DebuggerWidget</a> : <span class="keyword">public</span> QWidget {</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>Q_OBJECT</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    <span class="keyword">explicit</span> <a class="code hl_class" href="class_debugger_widget.html">DebuggerWidget</a>(QWidget *parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    <a class="code hl_class" href="class_debugger_widget.html">~DebuggerWidget</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>    QPixmap *pix = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_debugger_widget.html#a213eff4932d40c037f65e430f39c82f6">clear</a>();</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_debugger_widget.html#a89e32d55be8d489fb2e13ef9e3782617">line</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> eX, <span class="keywordtype">int</span> eY, <span class="keyword">const</span> QColor &amp;color = Qt::red);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_debugger_widget.html#a38b07584ef838427e34a3fb99109b560">circle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r, <span class="keyword">const</span> QColor &amp;color = Qt::red);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_debugger_widget.html#a0ab85b13be50022ce7892c5ce3569ed0">text</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> QString &amp;str, <span class="keyword">const</span> QColor &amp;color = Qt::red, <span class="keywordtype">int</span> font_size = 20) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_debugger_widget.html#a4268918c7df22e1eb211e1ba1f22583a">rectangle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> eX, <span class="keywordtype">int</span> eY, <span class="keyword">const</span> QColor &amp;color = Qt::red);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="keyword">protected</span> slots:</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="keywordtype">void</span> paintEvent(QPaintEvent *e) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    Ui::DebuggerWidget *ui;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    <span class="keywordtype">int</span> convertY(<span class="keywordtype">int</span> y) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>};</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="keyword">extern</span> <a class="code hl_class" href="class_debugger_widget.html">DebuggerWidget</a> *debugger;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#endif </span><span class="comment">// DEBUGGERWIDGET_H</span></div>
<div class="ttc" id="aclass_debugger_widget_html"><div class="ttname"><a href="class_debugger_widget.html">DebuggerWidget</a></div><div class="ttdoc">调试显示界面</div><div class="ttdef"><b>Definition:</b> debuggerwidget.h:17</div></div>
<div class="ttc" id="aclass_debugger_widget_html_a0ab85b13be50022ce7892c5ce3569ed0"><div class="ttname"><a href="class_debugger_widget.html#a0ab85b13be50022ce7892c5ce3569ed0">DebuggerWidget::text</a></div><div class="ttdeci">void text(int x, int y, const QString &amp;str, const QColor &amp;color=Qt::red, int font_size=20) const</div><div class="ttdoc">绘制文字</div><div class="ttdef"><b>Definition:</b> debuggerwidget.cpp:59</div></div>
<div class="ttc" id="aclass_debugger_widget_html_a213eff4932d40c037f65e430f39c82f6"><div class="ttname"><a href="class_debugger_widget.html#a213eff4932d40c037f65e430f39c82f6">DebuggerWidget::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">清除画板内容</div><div class="ttdef"><b>Definition:</b> debuggerwidget.cpp:26</div></div>
<div class="ttc" id="aclass_debugger_widget_html_a38b07584ef838427e34a3fb99109b560"><div class="ttname"><a href="class_debugger_widget.html#a38b07584ef838427e34a3fb99109b560">DebuggerWidget::circle</a></div><div class="ttdeci">void circle(int x, int y, int r, const QColor &amp;color=Qt::red)</div><div class="ttdoc">绘制圆形</div><div class="ttdef"><b>Definition:</b> debuggerwidget.cpp:44</div></div>
<div class="ttc" id="aclass_debugger_widget_html_a4268918c7df22e1eb211e1ba1f22583a"><div class="ttname"><a href="class_debugger_widget.html#a4268918c7df22e1eb211e1ba1f22583a">DebuggerWidget::rectangle</a></div><div class="ttdeci">void rectangle(int x, int y, int eX, int eY, const QColor &amp;color=Qt::red)</div><div class="ttdoc">绘制矩形</div><div class="ttdef"><b>Definition:</b> debuggerwidget.cpp:69</div></div>
<div class="ttc" id="aclass_debugger_widget_html_a89e32d55be8d489fb2e13ef9e3782617"><div class="ttname"><a href="class_debugger_widget.html#a89e32d55be8d489fb2e13ef9e3782617">DebuggerWidget::line</a></div><div class="ttdeci">void line(int x, int y, int eX, int eY, const QColor &amp;color=Qt::red)</div><div class="ttdoc">绘制直线</div><div class="ttdef"><b>Definition:</b> debuggerwidget.cpp:35</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
